package com.xnyzc.lhy.order.entity.user.message;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
* 用户-消息
* </p>
*
* @author lhy@xnyzc.com
* @since 2019-07-19
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysMessage对象", description="用户-消息")
public class OaSysMessage implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="message_id", type = IdType.INPUT)
    private Long messageId;

    @ApiModelProperty(value = "用户或司机ID")
    private Long userId;

    @ApiModelProperty(value = "用户类型（0：用户、1：司机、2：管理员）")
    private Integer userType;

    @ApiModelProperty(value = "消息类型（0：系统消息、1：活动消息）")
    private Integer messageType;

    @ApiModelProperty(value = "消息内容")
    private String messageContent;

    @ApiModelProperty(value = "消息标题")
    private String messageTitle;

    @ApiModelProperty(value = "跳转标识")
    private String jumpMark;

    @ApiModelProperty(value = "是否已读（0：否、1：是）")
    private Integer isRead;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "发送类型")
    @TableField(exist = false)
    private String pushCode;

    @ApiModelProperty(value = "司机ID")
    @TableField(exist = false)
    private Long driverId;

    public static final String MESSAGE_ID = "message_id";

    public static final String USER_ID = "user_id";

    public static final String USER_TYPE = "user_type";

    public static final String MESSAGE_TYPE = "message_type";

    public static final String MESSAGE_CONTENT = "message_content";

    public static final String MESSAGE_TITLE = "message_title";

    public static final String JUMP_MARK = "jump_mark";

    public static final String IS_READ = "is_read";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
